package com.zm.zb100.service;

import com.zm.zb100.persistence.entity.db.User;
import com.zm.zb100.repository.UserRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * UserService
 *
 * <p>
 * </p>
 *
 * @author chuanbai
 * @date 2024/4/3
 */
@Service
public class UserService {

    @Resource
    private UserRepository userRepository;

    @Transactional
    public Boolean delete(List<Long> idList){
        Boolean i = userRepository.deleteByIdIn(idList);
        return i;
    }
}
